package com.spring.study.pojo;

import java.util.Date;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @TableName good
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Good {

    private Integer goodId;
    @NotEmpty
    private String name;
    @NotNull
    private String url;
    @NotNull
    private Double price;
    @NotNull
    private Integer totals;
    @NotNull
    private Integer state;

    private Date createTime;
}